package com.fesine.learn.design.pattern.structural.decorator.v1;

/**
 * @description: 类描述
 * @author: fesine
 * @createTime:2019/4/28
 * @update:修改内容
 * @author: fesine
 * @updateTime:2019/4/28
 */
public class Test {

    public static void main(String[] args) {
        //原始煎饼
        Battercake battercake = new Battercake();
        System.out.println(battercake.getDesc() + " 销售价格：" + battercake.cost());
        Battercake battercakeWithEgg = new BattercakeWithEgg();
        System.out.println(battercakeWithEgg.getDesc() + " 销售价格：" + battercakeWithEgg.cost());
        Battercake battercakeWithEggSausage = new BattercakeWithEggSausage();
        System.out.println(battercakeWithEggSausage.getDesc() + " 销售价格：" + battercakeWithEggSausage.cost());
    }
}
